﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

/// <summary>
/// Summary description for AdminDAL
/// </summary>
public class AdminDAL
{
    DatabaseAccess dba = new DatabaseAccess();
	public AdminDAL()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public DataTable checkAdminLogin(Admin objAdmin)
    {
        SqlParameter[] paramList = new SqlParameter[2];
        paramList[0] = new SqlParameter("@adm_username",SqlDbType.VarChar,25);
        paramList[0].Value = objAdmin.AdmUser;
        paramList[1] = new SqlParameter("@adm_password",SqlDbType.VarChar,25);
        paramList[1].Value = objAdmin.AdmPass;
        return dba.executeSelect("proc_getAdminByUserAndPass",paramList);
    }
}
